home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
online
/
source
/
cpp
/
graphics
/
Conics.sit.hqx
/
Conics
/
Class Libraries
/
Cleanup
/
Cleanup.h
< prev
next >
Wrap
Text File
|
1996-11-08
|
751b
|
46 lines
//Copyright 1996 Aidan Cully
//All rights reserved
#ifndef __CLEANUP_H
#define __CLEANUP_H
#include <Types.h>
#include "Queue.h"
typedef Boolean (*CleanupProc)( UInt32, void* );
enum {
kSuccess = 0,
kDuplicateActionErr = 1,
kActionNotFoundErr = 2,
kActionLocalErr = 3,
kCleanupMemErr = 255
};
class TCleanup {
protected:
class ProcType {
public:
UInt32 procID;
CleanupProc theProc;
};
class DataType {
public:
UInt32 procID;
void *procData;
};
TQueue queue;
TList procs;
public:
virtual ~TCleanup();
UInt8 RegisterDirtyAction( UInt32, CleanupProc );
UInt8 UnregisterDirtyAction( UInt32 );
UInt8 NotifyDirty( UInt32, void* );
UInt8 Clean();
};
extern TCleanup mainClean;
extern void DrawAlert( unsigned char* );
#endif